package com.shynsoft.androidpos.db;

import java.sql.Connection;
import java.sql.DriverManager;

public class DB {
	static String url="jdbc:mysql://www.shynsoft.com/shynsof_dbpos";
	static String userName="shynsof_student";
	static String pw="std0147";
	static String driver="com.mysql.jdbc.Driver";
	
	static Connection con;
	
	public static Connection getCon()throws Exception{
		if(con==null){
			Class.forName(driver);
			con=DriverManager.getConnection(url,userName,pw);
		}
		
		return con;
	}
	

}
